package com.frank.oj.service.admin.training;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.training.Training;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.dto.TrainingDTO;

/**
 * @author frank
 * @Date 2024/4/8
 */
public interface AdminTrainingService {
    CommonResult<IPage<Training>> getTrainingList(Integer limit, Integer currentPage, String keyword);

    CommonResult<TrainingDTO> getTraining(Long tid);

    CommonResult<Void> deleteTraining(Long tid);

    CommonResult<Void> addTraining(TrainingDTO trainingDto);

    CommonResult<Void> updateTraining(TrainingDTO trainingDto);

    CommonResult<Void> changeTrainingStatus(Long tid, String author, Boolean status);
}
